package design_pattern.state.demo01.state;

import design_pattern.state.demo01.Context;

/**
 * @version 1.0.0
 * Created by cyd on 2022-06-02 17:42:12
 * @ClassName : design_pattern.state.demo01.ConcereteStateA
 * @Description : A状态，做完事情后置为B状态
 */
public class ConcreteStateA implements State {


    /**
     * @param context 上下文对象
     */
    @Override
    public void handleContext(Context context) {
        context.setState(new ConcreteStateB());
    }
}
